package myky.com.doctorapp.model;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import myky.com.doctorapp.api.ApiManager;
import myky.com.doctorapp.entity.UserEntity;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.contract.MineFragmentContract;

public class MineFragmentModel implements MineFragmentContract.Model {
    @Override
    public Observable<BaseEntity<UserEntity.PayLoadBean>> getuserinfo() {
        return ApiManager.getApistore().getUserInfo().subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }
}
